check_login()

window.onload = function() {



	showHead();
	showLeftMenu();

}


function showMealList(data){

	   // 获取 <select> 元素的引用
	    let selectElement = document.getElementById("meal_list");
		
		
	    // 使用循环创建选项并添加到 <select> 元素中
	    for (let i = 0; i < data.length; i++) {
	      let option = document.createElement("option");
	      option.value = data[i].id;
	      option.text = data[i].mealName;
		  console.log(option)
	      selectElement.appendChild(option);
	    }
		
		
		selectElement = document.getElementById("meal_list");
		console.log(selectElement)
		
	  
}
